<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript" src="__STATIC__/js/jquery.js"></script>
</head>
<body>
	<a href="{:url('home/login/login')}">切换用户</a>
	{volist name="userNodes" id="nodes"}
	<ul>
		
		<li><a href="<?php echo url($nodes['n_controller'] . '/' . $nodes['n_action'])?>" style="text-decoration: none;color: black;">{$nodes.n_name}</a></li>


		<ul>
			{volist name="nodes['son']" id="s"}
				<div><a href="<?php echo url($s['n_controller'] . '/' . $s['n_action'])?>" style="text-decoration: none;">{$s.n_name}</a></div>
			{/volist}
		</ul>


	</ul>
	{/volist}
</body>
</html>
<script type="text/javascript">

	$(function(){

		var lis = $("li");
		lis.click(function(){

			var obj = $(this);
			obj.next().toggle();

		});

	})


</script>